package com.starchen.optimalselection.common.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.starchen.optimalselection.common.model.ResultPage;
import com.starchen.optimalselection.common.model.Attribute;
import com.starchen.optimalselection.common.model.form.AttributeForm;
import com.starchen.optimalselection.common.model.vo.AttrQueryVo;
import com.starchen.optimalselection.common.model.vo.AttrRespVo;
import com.starchen.optimalselection.common.model.vo.AttributeVo;

import java.util.List;

/**
 * 商品属性
 *
 * @author daxilong
 * @email daxilong@gmail.com
 * @date 2022-08-14 19:57:36
 */
public interface AttributeService extends IService<Attribute> {

    ResultPage queryPage(AttributeForm attrQueryVo);

    List<Attribute> queryList(AttrQueryVo attrQueryVo);

    void saveAttribute(AttributeVo attribute);

    void updateAttr(AttributeVo attr);

    AttrRespVo getAttr(Long attrId);

    List<Attribute> getListByGroup(Long groupId);

    List<Attribute> selectAttrIds(List<Long> ids);

}

